package org.jeecg.modules.door.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.door.entity.LwgyDoorUploadsetting;
import org.jeecg.modules.door.mapper.LwgyDoorUploadsettingMapper;
import org.jeecg.modules.door.service.ILwgyDoorUploadsettingService;
import org.jeecg.modules.smoke.entity.LwgyJointSmokeConfiguration;
import org.jeecg.modules.smoke.mapper.LwgyJointSmokeConfigurationMapper;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 上传设置
 * @Author: jeecg-boot
 * @Date:   2024-10-25
 * @Version: V1.0
 */
@Service
public class LwgyDoorUploadsettingServiceImpl extends ServiceImpl<LwgyDoorUploadsettingMapper, LwgyDoorUploadsetting> implements ILwgyDoorUploadsettingService {

    @Resource
    private LwgyDoorUploadsettingMapper lwgyDoorUploadsettingMapper;

    @Override
    public IPage<LwgyDoorUploadsetting> queryDoorDeviceList(Page<LwgyDoorUploadsetting> page, QueryWrapper<LwgyDoorUploadsetting> queryWrapper) {
        queryWrapper.orderByAsc("building_name","unit_name","layer_name","room_name");
        return page.setRecords(lwgyDoorUploadsettingMapper.queryDoorDeviceList(page,queryWrapper));
    }

}
